import request from '@/utils/request'

// 查询产品设计列表
export function listPro_design(query) {
  return request({
    url: '/mes/pro_design/list',
    method: 'get',
    params: query
  })
}

// 查询产品设计详细
export function getPro_design(id) {
  return request({
    url: '/mes/pro_design/' + id,
    method: 'get'
  })
}

// 新增产品设计
export function addPro_design(data) {
  return request({
    url: '/mes/pro_design',
    method: 'post',
    data: data
  })
}

// 修改产品设计
export function updatePro_design(data) {
  return request({
    url: '/mes/pro_design',
    method: 'put',
    data: data
  })
}

// 删除产品设计
export function delPro_design(id) {
  return request({
    url: '/mes/pro_design/' + id,
    method: 'delete'
  })
}
